package gemini.castor.ui.client.service;

import java.util.ArrayList;

import gemini.basic.dto.SearchDistributorCriteria;
import gemini.basic.dto.SearchDistributorResult;
import gemini.basic.model.Distributor;

import com.google.gwt.user.client.rpc.AsyncCallback;

public interface DistributorServiceAsync {

	void save(AsyncCallback<Distributor> callback);

	void update(Distributor distributor, AsyncCallback<Distributor> callback);

	void getByCode(String code, AsyncCallback<Distributor> callback);

	void getDistributorByCodePin(String code, String pin,
			AsyncCallback<Distributor> callback);

	void findDistributor(SearchDistributorCriteria criteria,
			AsyncCallback<ArrayList<SearchDistributorResult>> callback);
}
